// 产品分类
import request from "@/api/request";

// 分页查询装备分类
export const search_cpcate = (params) => {
    return request({
      url: "/essentialdata/ec/selectAll",
      method: "post",
      data:params
    });
  };

// 逻辑删除产品分类
export const del_cpinfo = (params) => {
    return request({
      url: "/essentialdata/ec/delete/"+params,
      method: "post",
    });
  };

// 新增装备分类
  export const add_cpcate = (params) => {
    return request({
      url: "/essentialdata/ec/insert",
      method: "post",
      data:params,
      headers:{"Content-Type":"application/json;charset=UTF-8"}
    });
  };

//   查询装备分类详情
export const cx_cpinfo = (params) => {
    return request({
      url: "/essentialdata/ec/selectDetails/"+params,
      method: "post",
    });
  };

//   修改装备分类
export const change_cpcate = (params) => {
    return request({
      url: "/essentialdata/ec/update",
      method: "post",
      data:params,
      headers:{"Content-Type":"application/json;charset=UTF-8"}
    });
  };